﻿using UnityEngine;
using System.Collections;
using Boomlagoon.JSON;

public class TransactableStaticParser {
	public static void parseTransactableStatic (JSONObject transactableStaticJsonObj , TransactableStatic transactableStatic)
	{
		transactableStatic.primaryCurrencyCost = (int)transactableStaticJsonObj.GetNumber("primaryCurrencyCost");
		transactableStatic.primaryCurrencyResale = (int)transactableStaticJsonObj.GetNumber("primaryCurrencyResale");
		transactableStatic.decayRate = (int)transactableStaticJsonObj.GetNumber("decayRate");
		transactableStatic.decayAmount = (int)transactableStaticJsonObj.GetNumber("decayAmount");
		transactableStatic.purchaseMin = (int)transactableStaticJsonObj.GetNumber("purchaseMin");
		transactableStatic.spaceCost = (int)transactableStaticJsonObj.GetNumber("spaceCost");
		transactableStatic.massCost = (int)transactableStaticJsonObj.GetNumber("massCost");
	}
}
